/*

Author   : chaos

FileName : scope.cpp

Date     : 14/08/17 01:47:28

*/
#include <iostream>
using namespace std;

class Base
{
    public:
        int att;

        Base():att(3){};

        void show()
        {
            cout << "Base::show() is called !" << endl;
            cout << "Base::att = " << att << endl;
        }
};

class Derived:public Base
{
    private:
        int att;

    public:
        Derived():att(5){}

        void show()
        {
            cout <<"Derived ::show() is called !" << endl;
            cout << "Derived::att = " << att << endl;
            cout << "Base::att = " << Base::att << endl;
        }

        void call_Base_show()
        {
            Base::show();
        }
};

int main(int argc ,char *argv[])
{

    Derived A_Derived;

    A_Derived.show();

    //cout << "Derived::att = " << A_Derived.att << endl;

    cout << endl;

    A_Derived.call_Base_show();
    return 0;
}
